package com.zp.self.module.level_5_设计模式.结构型模式.Ⅴ_外观模式;

import lombok.Getter;

public enum ApplianceType {
    Light(new Light()),
    TV(new TV()),
    AirCondition(new AirCondition()),
    All(null);
    @Getter
    private final ElectricAppliance tool;
    ApplianceType( ElectricAppliance tool) {
        this.tool=tool;
    }
}
